<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: rtp_packet.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<div class="title">rtp_packet.h</div>  </div>
</div>
<div class="contents">
<a href="rtp__packet_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __RTP_PACKET_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __RTP_PACKET_H__ 1</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="audio__formats_8h.html">audio_formats.h</a>&quot;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;<a class="code" href="ip__packet_8h.html">routing/ip_packet.h</a>&quot;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">struct </span><a class="code" href="structrtphdr.html">rtphdr</a>;
<a name="l00008"></a>00008 
<a name="l00009"></a><a class="code" href="classCRTPPacket.html">00009</a> <span class="keyword">class </span><a class="code" href="classCRTPPacket.html">CRTPPacket</a> 
<a name="l00010"></a>00010 {
<a name="l00011"></a>00011         <span class="keyword">public</span>:
<a name="l00012"></a>00012                 <span class="keyword">virtual</span> <a class="code" href="classCRTPPacket.html#a87b3fa9e41ab9ffaf3268945a08d5156">~CRTPPacket</a>();
<a name="l00013"></a>00013 
<a name="l00014"></a><a class="code" href="classCRTPPacket.html#ad0a650ca47c14bebf24fdcf24094c0fe">00014</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classCRTPPacket.html#ad0a650ca47c14bebf24fdcf24094c0fe">sRTP_CSRC_FieldLength</a>;
<a name="l00015"></a><a class="code" href="classCRTPPacket.html#a40a58b3258d2f0a55dadb8a1dc4e5a57">00015</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classCRTPPacket.html#a40a58b3258d2f0a55dadb8a1dc4e5a57">sRTP_Extension_FieldLength</a>;
<a name="l00016"></a><a class="code" href="classCRTPPacket.html#a38f38f2ad2fea2fe41c21b35f2757827">00016</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classCRTPPacket.html#a38f38f2ad2fea2fe41c21b35f2757827">sRTP_Payload_Type_PCMU</a>;
<a name="l00017"></a><a class="code" href="classCRTPPacket.html#aa33b789c4cad4607c0d3e7f830a90625">00017</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classCRTPPacket.html#aa33b789c4cad4607c0d3e7f830a90625">sRTP_Payload_Type_PCMA</a>;
<a name="l00018"></a><a class="code" href="classCRTPPacket.html#a469941253b83a1055c7208474e81f07d">00018</a>                 <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="classCRTPPacket.html#a469941253b83a1055c7208474e81f07d">sRTP_Version</a>;
<a name="l00019"></a>00019 
<a name="l00020"></a>00020                 <span class="keyword">static</span> <a class="code" href="classCRTPPacket.html">CRTPPacket</a>* <a class="code" href="classCRTPPacket.html#a216cd49c57193f38e397a0828f9dfae0">createRTPPacket</a>(<a class="code" href="classCIPPacket.html">CIPPacket</a>* pIPPacket);
<a name="l00021"></a>00021                 <span class="keyword">static</span> <span class="keywordtype">int</span> <a class="code" href="classCRTPPacket.html#a14b34843a25b9a34ff30b89efd2da01e">destroyRTPPacket</a>(<a class="code" href="classCRTPPacket.html">CRTPPacket</a>* pRTPPacket);
<a name="l00022"></a>00022 
<a name="l00023"></a>00023     <span class="keyword">virtual</span> uint8_t* <a class="code" href="classCRTPPacket.html#a0e50109ddfab6b574b50db91a6272f2f">getPayload</a>() <span class="keyword">const</span>;
<a name="l00024"></a>00024                 <span class="keyword">virtual</span> uint32_t <a class="code" href="classCRTPPacket.html#abc941fb9521efbe3edee6db4cd3ae97d">getPayloadLength</a>() <span class="keyword">const</span>;
<a name="l00025"></a>00025                 <span class="keyword">virtual</span> uint8_t <a class="code" href="classCRTPPacket.html#ae9e360aadbe360a5688f6f0f6aac5c13">getRTPVersion</a>() <span class="keyword">const</span>;
<a name="l00026"></a>00026                 <span class="keyword">virtual</span> <a class="code" href="namespaceNAudioFormats.html#a3bd6168a4f5f18e84873337a65d3062c">NAudioFormats::ECodec</a> <a class="code" href="classCRTPPacket.html#a02f49a49f432c10cf0489e7701467399">getPayloadType</a>() <span class="keyword">const</span>;
<a name="l00027"></a>00027                 <span class="keyword">virtual</span> uint16_t <a class="code" href="classCRTPPacket.html#af84136ee411063e7f2e46f6c14c8d177">getSequenceNumber</a>() <span class="keyword">const</span>;
<a name="l00028"></a>00028 
<a name="l00029"></a>00029                 <span class="keyword">virtual</span> uint8_t <a class="code" href="classCRTPPacket.html#a0558375bd610c0e1ce25e36b1a10aeb2">getRTPHeaderLength</a>() <span class="keyword">const</span>;
<a name="l00030"></a>00030 
<a name="l00031"></a>00031         <span class="keyword">private</span>:
<a name="l00032"></a>00032                 <a class="code" href="classCRTPPacket.html#a3c024be38f8b2b659a1de3e865753826">CRTPPacket</a>();
<a name="l00033"></a>00033                 <a class="code" href="classCRTPPacket.html#a3c024be38f8b2b659a1de3e865753826">CRTPPacket</a>(<a class="code" href="classCIPPacket.html">CIPPacket</a>* pIPPacket);
<a name="l00034"></a>00034                 <a class="code" href="classCRTPPacket.html#a3c024be38f8b2b659a1de3e865753826">CRTPPacket</a>(<span class="keyword">const</span> <a class="code" href="classCRTPPacket.html">CRTPPacket</a>&amp; );
<a name="l00035"></a>00035                 <a class="code" href="classCRTPPacket.html">CRTPPacket</a>&amp; <a class="code" href="classCRTPPacket.html#a4d3821d2e8f031d0f9aa4d2bbd929e62">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCRTPPacket.html">CRTPPacket</a>&amp; );
<a name="l00036"></a>00036 
<a name="l00037"></a>00037                 <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classCRTPPacket.html#a1730cde70882389283a94f114cca3a65">isRTPPacket</a>(<a class="code" href="classCIPPacket.html">CIPPacket</a>* pIPPacket);
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="classCRTPPacket.html#a41258d9821e8cc5b448868a6ddf3dfe6">00039</a>                 <a class="code" href="classCIPPacket.html">CIPPacket</a>* <a class="code" href="classCRTPPacket.html#a41258d9821e8cc5b448868a6ddf3dfe6">mIPPacket</a>;
<a name="l00040"></a><a class="code" href="classCRTPPacket.html#a3c4670e4741c436c54106e8cb6d742fc">00040</a>                 <span class="keyword">struct </span><a class="code" href="structrtphdr.html">rtphdr</a>* <a class="code" href="classCRTPPacket.html#a3c4670e4741c436c54106e8cb6d742fc">mRTPHeader</a>;
<a name="l00041"></a><a class="code" href="classCRTPPacket.html#a32f7fe98d3b255aa5bc08fabb50e60ed">00041</a>                 uint8_t* <a class="code" href="classCRTPPacket.html#a32f7fe98d3b255aa5bc08fabb50e60ed">mPayload</a>;
<a name="l00042"></a>00042 };
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="preprocessor">#endif </span><span class="comment">/* __RTP_PACKET_H__ */</span>
</pre></div></div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:39 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
